<?php
  include_once("Objet.class.php");

  class Chauffage extends Objet
  {

    private $temperatureAmbiante;

    public function __construct($id, $emplacement)
    {
      parent::__construct($id, 'Chauffage', $emplacement);
      $this->temperatureAmbiante = 21;
    }

    public function changerTemperature($temperature)
    {
      $this->temperatureAmbiante = $temperature;
    }

   }